<?php

require_once("View/TopicView.php");
require_once("Model/TopicList.php");

class TopicListController
{
	public function DoControll(Database $db)
	{
		$tv = new TopicView();
		$tl = new TopicList($db);
		
		$topics = $tl->getAllTopics();
		
		$ret = $tv->RenderTopicList($topics);
		return $ret;
	}
}

?>